package com.cake.entity;

import java.util.Date;

import com.cake.entity.base.BaseEntity;

public class XxSpecification extends BaseEntity {
    /**
     * 商品规格主键
     * 表字段 : xx_specification.id
     */
    private Long id;

    /**
     * 商品规格单位名称
     * 表字段 : xx_specification.name
     */
    private String name;

    /**
     * 商品规格类型
     * 表字段 : xx_specification.type
     */
    private Integer type;

    /**
     * 商品规格备注
     * 表字段 : xx_specification.memo
     */
    private String memo;

    /**
     * 商品规格排序位
     * 表字段 : xx_specification.orders
     */
    private Integer orders;

    /**
     * 商品规格创建时间
     * 表字段 : xx_specification.create_date
     */
    private Date createDate;

    /**
     * 商品规格最新修改时间
     * 表字段 : xx_specification.modify_date
     */
    private Date modifyDate;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table xx_specification
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", type=").append(type);
        sb.append(", memo=").append(memo);
        sb.append(", orders=").append(orders);
        sb.append(", createDate=").append(createDate);
        sb.append(", modifyDate=").append(modifyDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}